package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class Employee {
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin;

    // 关联部门信息
    private Department dept;

    // 关联角色信息
    // 给默认值 是为了防止没有角色的时候报空指针异常
    private List<Role> roles = new ArrayList<>();

}